<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="base" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>客户</title>
</head>
<body>
<h1>客户界面</h1>
<table>
    <tr>
        <th>名称</th>
        <th>联系人</th>
        <th>电话</th>
        <th>邮箱</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    <c:forEach var="customer" items="${customers}">
        <tr>
            <td>${customer.name}</td>
            <td>${customer.contact}</td>
            <td>${customer.telephone}</td>
            <td>${customer.email}</td>
            <td>${customer.remark}</td>
            <td>
                <a href="${base}/customer_edit?id=${customer.id}">编辑</a>
                <a href="${base}/customer_del?id=${customer.id}">删除</a>
            </td>
        </tr>
    </c:forEach>

</table>

</body>
</html>
